import { useModel } from '@umijs/max';
import PlatformCom from './PlatformCom';
import MerchantCom from './MerchantCom';

export default () => {
  const { platformType } = useModel('Global');
  return (
    <>
      {platformType === 0 ? <PlatformCom /> : <MerchantCom />}
    </>
  );
}